package com.un.ebs.product.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.un.ebs.core.enums.IEnum;
import lombok.Getter;

/**
 * @author liubo
 * @email liubocs@163.com
 * @date 2020/2/28 12:00
 */
@Getter
public enum ProductSaleTypeEnum implements IEnum {

    Open(0, "开放式销售"),
    AloneSale(1, "单品独立销售"),
    AloneGive(2, "单品独立赠送");

    ProductSaleTypeEnum(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    @EnumValue
    private final int value;

    private final String desc;

    @Override
    public int getCode() {
        return value;
    }
}
